package com.youlu.campus.web.community.controller;

import com.youlu.campus.service.activity.ActivityCmsConfigService;
import com.yuelin.infrastructure.quantum.common.QResult;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class ActivityCmsConfigController {
    @Autowired
    private ActivityCmsConfigService activityCmsConfigService;

    @PostMapping("/mini-app/activity/cms-config")
    public QResult getOne(@RequestParam("activityId") String activityId) {
        return QResult.success(activityCmsConfigService.findBy(activityId));
    }

}
